import { Login } from "@/api/interface/index";
import { PORT1 } from "@/api/config/servicePort";
import { obj2fd } from "@/utils/index";
import http from "@/api";
// 查询列表
export const getDataByPage = (params: object) => {
  return http.get(PORT1 + `/secure/l7dportList/${params.pageNum}/${params.pageSize}/1`, params); // 正常 post json 请求  ==>  application/json
};
// 修改
export const editData = (params: object) => {
  return http.post(PORT1 + `/secure/l7dportUpdate`, obj2fd(params)); // 正常 post json 请求  ==>  application/json
};
// 修改状态
export const editDataStatus = (params: object) => {
  return http.post(PORT1 + `/secure/l7dportState/${params.id}/${params.state}`); // 正常 post json 请求  ==>  application/json
};
